<template>
  <!-- 面试技巧列表选项组件 -->
  <div class="technicItem">
    <div class="left">
      <div class="top van-multi-ellipsis--l2">
        {{ info.title }}
      </div>
      <div class="bottom">
        <div class="b1">{{ info.updated_at | formatTime }}</div>
        <div class="b2 iconfont">&#xe644;</div>
        <div class="b3">{{ info.read }}</div>
        <div class="b4 iconfont">&#xe638;</div>
        <div class="b5">{{ info.star }}</div>
      </div>
    </div>
    <img v-if="info.cover" class="right" :src="$baseUrl + info.cover" alt="" />
  </div>
</template>
<script>
// import moment from 'moment'
export default {
  props: ['info'],
  // Vue.filter(方法名,function(参数){})
  filters: {}
}
</script>
<style lang="less" scoped>
.technicItem {
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  .left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    .top {
      font-size: 16px;
      font-family: PingFangSC, PingFangSC-Medium;
      font-weight: 500;
      text-align: left;
      color: #181a39;
      line-height: 22px;
      letter-spacing: 0px;
    }
    .bottom {
      display: flex;
      align-items: center;
      font-size: 12px;
      color: #ccc;
      .b1 {
        flex: 1;
      }
    }
  }
  .right {
    padding-left: 10px;
    width: 113px;
    height: 75px;
    object-fit: cover; // cover:等比处理,超过就裁切  contain:等比处理,全部显示,不够位置留白
  }
}
</style>
